{php}
$router = strtolower(request()->controller().'.'.request()->action());
{/php}
<style>
    .footer ul li a p.select{
        color: #fff;
    }
</style>
<div class="kong"></div>
<div class="footer" style="background: #4587e9;">
    <ul>
        <li>
            {if $router== 'index.index'}
            <a href="javascript:;">
                <img src="__PUBLIC__/home/images/a11x.png" alt="">
                <p class="p1 select">首页</p>
            </a>
            {else}
            <a href="{:url('Index/index')}">
                <img src="__PUBLIC__/home/images/a11.png" alt="">
                <p class="p1">首页</p>
            </a>
            {/if}
        </li>
        <li>
            {if $router == 'center.index'}
            <a href="javascript:;">
                <img src="__PUBLIC__/home/images/a12x.png" alt="">
                <p class="p1  select">生态园</p>
            </a>
            {else}
            <a href="{:url('Center/index')}">
                <img src="__PUBLIC__/home/images/a12.png" alt="">
                <p class="p1 ">生态园</p>
            </a>
            {/if}
        </li>
        <li>
            {if $router == 'user.index'}
            <a href="javascript:;">
                <img src="__PUBLIC__/home/images/a13x.png" alt="">
                <p class="p1  select">我的</p>
            </a>
            {else}
            <a href="{:url('User/index')}">
                <img src="__PUBLIC__/home/images/a13.png" alt="">
                <p class="p1 ">我的</p>
            </a>
            {/if}
        </li>
    </ul>
</div>